added angle measurement code