change to array instead of stutruct to get the demo script working