fixed entr so entr(0) = 0