write script to clean up csv file automatically