change data_init to array