updated trialCounter