removed logsumexp