flip LHS and RHS in first comparison
aren't these magic numbers?