update management of number of items