identifier error for typeOf