add decoration to change state and return ok