writeLn mechanism