adding state to updates