added delete_particle input check