swap misnamed variables numter and numvar