diff --git a/modules/amv/caliop_clavrx_amv.py b/modules/amv/caliop_clavrx_amv.py
index 51506c95bd238281f16d402a61b93ca4da1a8226..f58517c45184dd7b6be5d6131519a89a5f130986 100644
--- a/modules/amv/caliop_clavrx_amv.py
+++ b/modules/amv/caliop_clavrx_amv.py
@@ -171,7 +171,6 @@ def create_file(match_dct, filename, caliop_clavrx_params, amv_params, amv_filen
     prf_time.units = 'seconds since 1970-01-1 00:00:00'
     prf_elem = rootgrp.createVariable('FD_elem', 'f4', ['num_caliop_profs'])
     prf_line = rootgrp.createVariable('FD_line', 'f4', ['num_caliop_profs'])
-    #prf_fidx = rootgrp.createVariable('amv_file_index', 'i4', ['num_caliop_profs'])
 
     amvs_cnt_var = rootgrp.createVariable('num_amvs_per_match', 'i4', ['num_caliop_profs'])
 
@@ -198,7 +197,7 @@ def create_file(match_dct, filename, caliop_clavrx_params, amv_params, amv_filen
     amv_lat.units = 'degrees north'
     amv_elem = rootgrp.createVariable('amv_elem', 'f4', ['num_caliop_profs', 'max_num_amvs'])
     amv_line = rootgrp.createVariable('amv_line', 'f4', ['num_caliop_profs', 'max_num_amvs'])
-    #prf_fidx = rootgrp.createVariable('amv_file_index', 'i4', ['num_caliop_profs'])
+    amv_fidx = rootgrp.createVariable('amv_file_index', 'i4', ['num_caliop_profs'])
 
     nc4_vars = []
     var_s = rg_exmpl.variables
@@ -222,7 +221,7 @@ def create_file(match_dct, filename, caliop_clavrx_params, amv_params, amv_filen
     prf_line[:] = lines
     prf_time[:] = atimes
     amvs_cnt_var[:] = amvs_cnt
-    #prf_fidx[:] = fidxs
+    amv_fidx[:] = fidxs
 
     amv_file_names[:] = amv_file_s