create data folder and save the last output data