attempting to get arrays to loop