replace all Array[Double] with Vector