refactoring, fix route with many poings