got rid of an unnecessary line in polygonGen