better initialization of array