reference function not print output

downloadURL was from an older version