almost no change...will likely remove tree data structure for something more efficient.