change change leader logic