} else{
            for(i = start; i >= end && ns[i]; i--){
                nodes.push(ns[i]);
            }
        }