update array with commas