file cleaning and update with parallel sim code