replace Seq with DenseVector