array and for_loop work