catch divide by zero