fixed bug in degree data