updates to record saving