replace deprecated method
Merge pull request #1003 from tshepang/diff

replace deprecated method