add divide by zero case