add support for polygon
check list length for inputs to polygon