* adjust the download function.