changes to lookup_symbol