pitch_srh: bug fix and efficiency