update design doc function