adjusted path logic