added methods for types and subtypes