array in array for update function