Remake rule document