do not duplicate the logic
Merge pull request #1 from gfx/patch-1

do not duplicate the logic