correct a couple of syntax changes
Merge pull request #1 from duncanchen/master

correct a couple of syntax changes