mask update rules