bug is actually fixed this time, was using wrong way for less than operator.