added motionB2() to D3