Correct to 2 function

remove the set to matrix