changed function input to url, and output to results object via callback