added tree visualization