download function is done working on scan_donwload