replacing file with changed one