updating deprecated template methods
Merge pull request #4 from pcostanz/master

Thanks so much! Your update works perfectly.