moving the list generation to a seperate method