created filling of the array