iterative block in array and hash