modify extract rules