use compiled patterns