add matches   manager code and matches test code