added the minY and maxY