handle case of infinite y in less()