tree and deltree methods