polyline test
slight modifications