use dictionary for entropy calculation [Finishes #77292788]