added a clone method for groups