removed extra writeln]