implementing commandGetLeading