tree hash update