better path drawing