avoid useless comparisons