Understanding resilience