prepare groups