correcting initialisation of arrayList to proper way for copying List