added tag generating rule