added maximum entropy function