simplify
merged printSimpleType into printType