save time by changing order of && operands