counters and params fix