update array fold