added function to calculate helicity angel