check for mcParentage[imc]==0 added