function for creating the polystrip