debugging. something wrong if if.cpp related to get_rtree()