getType works perfectly