fixed polygon conversion to include sub-polygons