working AS and fixed plot in PSO