changed return result of accept group to return the updated group