set tree weight