changed tree data structure