I use a Line6 Uber Metal distortion pedal. I've always loved the sound I get from it, except for one sound. Although the pedal has a noisegate, it doesnt completely remove the buzzing sound (I can hear it now and again when im playing or touch the guitar strings). When the noisegate is off, the noise is horrible. I tried to solve the problem by testing all my gear (guitar, cables, etc.) but its definately the pedal. I tried to use another pedal but I dont get the sound I want and I dont want to buy another pedal (since it is fairly expensive). Does anybody have some ideas or tips so I can get rid of the buzzing sound?

(I think it might be the input and/or output jacks because when I rotate the cables connecting it, the buzzing sound increases and decreases)

Any help is appreciated.