pull out tree and bush functions