clean object tree