simplify log computing