reworked list generation; fixed #7;