update mask definitions