for simulating particle systems