fix deprecated code
Merge pull request #1 from stmuk/master

fix deprecated code