added r_tree to state