the dog will tend to stay obedient in hopes he is rewarded , and the fact that he never knows when that will be keeps him always on guard and ever vigilant of the need for constant , proper behavior .