Developing resilience in the face of setbacks