return a list whatever the chosen output format is