clean up qp