created initial array function