remove volatile keyword. These classes are not meant to be threadsafe.