fix deprecated method call
Merge pull request #126 from imamathwiz/master

fix deprecated method call