replaces data file with correct content