filter matnames in setLayerSetMask()