added vertex deletion
minor bugfix