optimized
ber testing