What does the activity of defense mechanisms depend on