added leader functionality