bresenham process, but not finished