added saving log data for all records