modify add_pattern interface