small code cleanup
Merge pull request #969 from jrenner/patch-1

small code cleanup