add write() to complement writeln()