fix returns, const vertices
use vertex* instead of const vertex*