141024-iss002: modify calc_degree_of_freedom