putting trees back into layout