modifed record method