dof computation corrected