141107-iss001: modify calc_degree_of_freedom