fixed defaults and dof to double