had reversed logic
typos
updated notify tree
logic problem