added array access and runtime subscript checking