added saving of new records