update download function