tidy that works with Shannon-Fano