slight entropy optimization