fixed entropy for non positive values