made changes recommended in pull request