global volume test code working
cleaned up global volume code