create array of struct