remove useless code
add chance range