gie up to get the sequence for each variant in Output() function for fixing the memory problem