optimizate the path iterator
optimizate the path polygon