valid and simplematch