move elementt to array