finding proper path didn't work properly