resolved: last vertex is now added