fixed stdout output