modify halfedge