particles draw function improved