working on check_record