add counter stuff