checked out Records and created function to update value of a record