Its called classical conditioning. Mace them...each and every time they try to get to you. The dogs will associate you with the mace pain and no go near you. Its the oppisite effect of tossing a treat...they will associate you with treats and still come out and get in your way.