initilizatin marray creation and nearly data insertion