renamed .motionstate to .type