remove deleteLastRecord function