need to add stability working with NULL vertex