refactoring path concate()