change map of map to map of double[]