made sure that dgCMatrix is being used