array loop and mode 1 complete