add patterns