tinkered with automating the array creation