finish adding structured learning, not yet tested