updated the file path for the read and write