rename reserved typeof to type