implemented subscript operators