DS init
Added some array codes