likelihood function now separate file