moved parallel saving function in the folder