manage the number of bodies