utility functions to get sp vertices