add functionality back into trees#index