add extraction rules for each attribute