sw.append("1") was just a debugging thing