new version entropy computation