What is the best way to adjust the socket for different animations?

I am created a socket on the right hand, and when i pickup the weapon it looks good the weapon is in place. But when i change to running animation the weapon is out of place, when I edit the socket for the running animation then the first idle animatio



n is out of place. what is the best solution for this?