added function isLeader