added func Format() to switch the output-format