theta overflow check