changed text output to pre-formatted