changed class(x) to clx