reseting the records to nul if necessary