add GetType method