implemented insertRecordInSlot