adding code to download the file