small optimization

from your comment to my last pull request....