improve log margin