raft: update based on example