adding groups to vertices