whoops...didn't fully change all the ans to writeto