change in update query(sequence to state)