buffer index control