log likelihood function definition