replace example likelihood function