simplify broadcast code