fixed slight bug in likelihood function