x resets to 0