improve writeln