before mask changes