mode design document