fixes depreciation error
Merge pull request #20 from wallnuss/master

fixes depreciation error