fixed my error in maskVal
Merge pull request #23 from jeffreylunt/TylerBranch

fixed my error in maskVal