modified eos-ls-recursive