for checking the uncommit action and reset