bugfix: 'cbcd' should be 'mask' on line 59