added console.log to print the results