before change shl & shr B to A