not using newArrayList() method