minimizing logging