reference nc_variables before being called