implemented multi dimensional array access