use n*n*n instead on n*n for nnls