remove unnecessary broadcast
update for output
update debug output