added TR_leaf3 rule. Cleanup on other rules