print output on console