changed .class to .TYPE for primitives in reflection