tried getting type info. but not getting proper result