added function to keep records on the change of single record