still working before log probabilities
early draft: still editing