added entropy measure