cleaning, gridsize, bresenham