fixing some errors in best particle choosing and handling