rewrite exp-qp-diff