patch with pull request 767