cleaned up text output following failed attempt at abstraction