updated index for the pipe