Uniquify leafs list

 Uniquify leafs list of all main subroutine