fixed ~ in writeln to simply seperate arguments