slight refactor of output for debugging