changing inequalities order.