cleanup submitted search codes method