version 1 of leader election