move array setup to init call