initialize array by element