add rule mask