make counter volatile