changed outstanding counter to volatile