added matches to templates