working on record definitions