using list instead of array of strings