implemented addToGroup