removed future warning  from from_arrays