changed counter with pattern