updated use reference in download_object() method