added code for ig polygons