and print to console