add ag to search codes