polyline working
bug fixing