added the console.log to print out results