make generic generation : so electron, muon cases are treated together