search now changes static tree