add pattern matching assignment
add patmat assignment