entropy and histogram work