initial code
merged vertex