got algorithm working with simplified Sc likelihood