log overflow and underflow