resolved missing close function braces from pull request