added calculation of angle