updating flow for previous leader