Adapting to life's surprises