update custom rules