document pattern match added