chose appropriate compareitems