move array creation to initilizer