update to patt_rec
update to patt_rec