modify mask fields