removed unnecessary volatile declaration