correct doc mode