changed ndf to DoF