assign by reference also if array is given