tightened up pixel comparisons