added reference processing
likelihood model work