update remaining number decrease logic