implement sequenceSetItem and sequenceGetItem