add NewRecordWithId method