replace with new content of file