[M]modify the process of mask layer for solving multiple masks per tile