overflow and underflow comparison