added a record variable to initialize method