add working array loop