update stages changed
merged with case