dynamically allocated initArray plus struct
fixed dynamic allocation added struct etc