conversion of functions, starting to test likelihood