prevent division by zero

added check to prevent tau3/tau2 check from dividing by zero