improvements for grid tree