added closeEdge