check division by zero