change usage of ArrayList<> in variable declaration to List<>