get method worked on for path