made startPIndex non-public