changes
binary tree + logging