distinguish between overflow and underflow - Search