cleaned up the text output and switched to new string format