added synchronization with tree