changed groupservice to include multiple functions