performance fix
Merge pull request #3 from naylor-b/master

performance fix