updated inferencer code