changed .type to ._type