updating lookup code