make sure we have a valid vertex
make sure we have a valid vertex