put in error checks for lookup functions called with non-symbol