update stages