create setter/getter for array