Declared indexSubTree before using it