improve performance see #1
Merge pull request #6 from pgilad/patch-1

improve performance see #1