loop all arrays by block