N_file is now set equal to r_nx