commented out check for num vertices on detection