able to write records to file