changed so it wrote