When training my lab, she seemed a little gun shy at first..so i brought her in the yard on a leash, with a pocket full of treats and a .22 rifle with the nail-gun blanks. I would shoot, then immediately give her a treat, over and over. After about 10 minutes she learned to love the sound of the gun because it meant a reward was coming. No problems since.