changed maxes and mins of x and y