fix output formatting