degreeking variables
dof -> degrees_of_freedom
fixing return argument and double semi-colon