changed String[] to List<String>