do not recalc mask state twice