update to patt_rec