refactoring LLR calculator out