getting rid of odd comparison