tweaking parameters to minimize entropy output