replace array with an array of quote objects