renamed type key to type again