worked on typeOf