correct derivative for MA