add management of the number of array and update manifest