mass removal of duplicate functions