prepare compare record