update entropy functions