match model and rules model