updates the record func