revised as suggested in https://github.com/rethinkdb/rethinkdb/pull/2704#discussion-diff-15035588