correct derivative for CMA