reduce arrayList creation