working on toggling between leaf persistence arrays