added support for array access