edits on trs and pattern