variable lookup code changed