adding stubbed getindex code