cleaning up particles.cpp