add tree balance