sw.write works