add a check for the latitude of the upper right corner