remove nested functions
Merge pull request #184 from gem/integrate-vulnerability

Integrate vulnerability