check whether exist before adding group and group member; delete useless code