What about using `state` instead of `dic` here?