Chanign index to path