addressed comments in pull request 1