some modify for entropy-lab