algorithm 2 rejected to leader. tested