refine rule Class