reworked comparison