not making dense matrix