refactored record saving