fix deprecated code
Merge pull request #2 from carbin/dep

fix deprecated code