reduce complexity of order