add group management function.