flipped coordinates, plus mask