writeLine now works