change rules array