improved path calculation