use file to track the record