TODO: transform to design doc (above)