close polygon