just building stuff to understand the log-likelyhood