add saving output data  to file