update array sample