matched spec with template