print result to console