working on record class