make sure dphi values are saved in output files