commented loop for array