using dense matrix is faster...