fix output display issue (missing puts)