moved path variable assignment a bit