deleted constant LEADER_LENGTH; added more flexible check for leader