trying to get PSO to converge correctly