fix depreciation warning
Merge pull request #1 from rkingon/master

fix depreciation warning