pre-comparison setup