added pseudolikelihood optimization