handle entropy estimate correctly