fixing getdegrees script