fix line drawing
slightly closer to working