record in external file