fix error output
code style fixes