changed degree related values to double