file index working