hopefully completely fixed printing too much data problem in overwrite_nc_variable