renamed type name from name to type