implemented classifyPath