fixed constructor with double array parameter