updated index for path arg