update tree height

update to limit tree height