states index is synchronized with character potision