"code that edits state" sounds strange - "code that edits the state"?