fully working apart from calculation to degrees