tree and layout modifications