add write and writeln