removed term == 0 case from tailHelper()