catch div by zero error