fix deprecation warning
Merge pull request #22 from rened/pointer

fix deprecation warning