what you can also try is..

Have a treat in your hand and make a fist. Make sure the dog can smell it. Only open up your hand when he backs off and stops sniffing (and trying to get at it). If he doesn't eat nicely out of your hand, close it again. Only open your fist when he's a good boy. This should teach him that all good things come from you PERIOD.