simplified entropy calculation