Polylines struct rewritten