modifying tree