first implementation of "isDiff" func.
update stack tree only with data changes.