implement tested comparison method