fixed error where didnt look for function params that are references in symbol table