fixes syntax in chaining pattern