documented weakly supervised code