adjusting the offset and numTrials