class A and B change