replaced polylines with polygons