updating x class