debugging the semi-supervised formulation