cleaning up bresenham unit