entropy computations