Turning failure into gold