make nbItems selectio work