modified the array that holds the dyanamically added items