Plasma density buildup after pellet injection