remove duplicate functions