- added implementation for getType and getSubtype