instead of printing the list, join it with a comma