cleaning up render_particles.cpp