modified code on addDelRecordCompare