changed centreing of text print