patch, add function: return match status to callee