added divide by zero