update class binding