check for potential overflows