opimize the maxpath to itermaxpath, analyze is over.