added typeOf