auto-reset of x