added array to loop