entropy: reducer for calculations