replacing file that was modified