make bresenham static