top and maxY