properly output cgname and symbol, different type check