adding the right index file