put nc_flux func back in