array with loop