commit symmetric tree code