change comments on state update function