error: write->writeTo
Merge pull request #1436 from xiangli-cmu/writeTo

error: write->writeTo