keep track of both X and Y values in compare mode