make state var volatile