begin to use nnls solve the material fitting problem.