print routine - common