Added code for ig polygons