resolved the typeOf problem with qualification