change the logic work on record model