all the right and left terms were in the wrong order in the comparison handling