fixed bug only do tmpdis on < 3 dogs