added arrary's and loops