fixed readability of output with regex magic