modified the file from temp folder