put .type into the doge object.