change code to get type info