fixed some performance
Merge pull request #3 from soloman817/master

update