improved tree layout