started the entropy functions