add array access constructor