added initial array function