loop for data arrays. Pretty code!