Hopefully,solution for path problem