edit pattern