adapted from pull request 130
dead code