refactoring PATH variable