* refactor lineage construction step 1