re-wrote the content of dream.txt