fixed addgroup()