bug fixed:division lead to dead loop
add example