detect deleted phrases and updated leaf phrases