buildRule restructure