corrected list generation.