solve routes problem for groups