first functioning likelihood routine!