storing records has moved to the record class