add allocation check in list_particlies