printing results in console