affected rows write
code style patch
affected rows write