getting type class obj error