fixed greater than/lessthan equality checking