working on the download part