updated binary tree