fixed deprecated syntax
Merge pull request #3 from mknadler/master

fixed deprecated syntax