fix download function - no argument needed