implemented smarter single particle index generation