code cleanup (e.g. removed disfunctioning tree code)