fixed syntax matching rules.