change from ArrayList<String> to String[]