array slice and splice added