added the entropy estimation