modified discussion delete with if command