fixed my error in maskVal