add outputFolder to construct the file path to save the data