working on the record handler