Add initialization of array to initialise method

to avoid repetition in following methods