added code to patch matcher