leader election working