changed search in tree