array and vector assignment