Change typeOf to typesOf