cleanup lineage