make sure viz_counter is initialized