rewrite typeIt