are you taling about 
#####get_learnt_mat() 
function above?