simplifying use of types