modified an output string in pathgenerator