use writeln for label