add patmat assignment