addressed questions in the pull request