improved path analysis