renamed type property to _type